<template>
</template>

<script>

import store from '../../store'

export default {
  name: 'Dashboard',
  created() {
    if (store.getters.roles === '0') {
      this.$router.push('/admin/index')
    } else if (store.getters.roles === '1') {
      this.$router.push('/teacher/index')
    } else {
      this.$router.push('/student/index')
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }

  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
